package com.rd.student.jike.class2.lihongming.Solution713;

/**
 * @Auther:Heinrich
 * @Date:2023/7/13-07-13-10:00
 * @Description:com.rd.student.jike.class2.lihongming.Solution713
 * @version:1.0
 */
public class Question2 {
    public static void printTower(int floors) {
        for (int i = 1; i <= floors; i++) {
            for (int j = 0; j < floors-i; j++) {
                System.out.print(" ");
            }
            for (int j = i; j >0 ; j--) {
                System.out.print(j);
            }
            for (int j = 1; j < i; j++) {
                System.out.print(j+1);
            }
            System.out.println();
        }

    }
    public static void main(String[] args) {
        Question2.printTower(6);
    }
}
